<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button class="toList">跳转到list页面</button>
		<button class="forwardList">前进</button>
		<script type="text/javascript">
			var btn1 = document.querySelector(".toList")
			btn1.addEventListener("click", function() {
				location.href = "list.html";
			})

			var btn2 = document.querySelector(".forwardList")
			btn2.addEventListener("click", function() {
				// history.forward();	//前进一个页面
				history.go(1); //前进指定数量的页面
			})
		</script>
	</body>
</html>
